home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990: Night of the Living Disc / Night of the Living Disc.2mg / Dev.CD.5 / Tools / My.Word / My.Word.Doc < prev    next >
Encoding:
Text File  |  1990-08-17  |  23.8 KB  |  449 lines  |  [50] Apple IIgs Word Processing (0x5445)

  1.         My Word! User Notes
  2.                 Copyright 1990 Gary Little
  3.  
  4. By:    Gary Little
  5. Date:    September 17, 1990
  6.  
  7.                  Overview
  8.  
  9. My Word!™ is a word processor for the Apple® IIGS® which requires System 5.0.3 or higher. It takes full advantage of two important system software features that Apple Computer, Inc. introduced in System 5.0: resources and the TextEdit tool set. Refer to the section of the Appendix called Installing the My Word! Files for information on how to install My Word! on your startup volume. 
  10.  
  11. You can probably figure out how to use My Word! without reading these notes. It's a standard desktop application you can explore by pulling down all the menus and trying out all the items they contain. Nevertheless, I've put together this summary of commands to get you started.
  12.  
  13.               Editing Keys
  14.  
  15. My Word! supports a number of editing keys to help you compose text and navigate through a document more efficiently. Here is a summary of these editing keys:
  16.  
  17. Left arrow    Moves the insertion point to the previous character.
  18.         Command key causes movement by word instead.
  19.         Option key causes movement to the start of the current
  20.         line.
  21.         Shift key extends the selection from the current
  22.         insertion point back one character, word (if the
  23.         Command key is also held down), or line (if the Option
  24.         key is also held down).
  25.  
  26. Right arrow    Moves the insertion point to the next character.
  27.         Command key causes movement by word instead.
  28.         Option key causes movement to the end of the current line.
  29.         Shift key extends the selection from the current
  30.         insertion point ahead one character, word (if the
  31.         Command key is also held down), or line (if the Option
  32.         key is also held down).
  33.  
  34. Up arrow    Moves the insertion point to the current column position
  35.         on the previous line.
  36.         Command key causes movement to the start of the current
  37.         page.
  38.         Option key causes movement to the beginning of the
  39.         document.
  40.         Shift key extends the selection from the current
  41.         insertion point up by a line or page (if the Command
  42.         key is also held down), or to the beginning of the
  43.         document (if the Option key is also held down).
  44.  
  45. Down arrow    Moves the insertion point to the current column position 
  46.         on the next line.
  47.         Command key causes movement to last line of the page. 
  48.         Option key moves the insertion point to the end
  49.         of the document.
  50.         Shift key extends the selection from the current
  51.         insertion point down by a line or page (if the Command
  52.         key is also held down), or to the end of the
  53.         document (if the Option key is also held down).
  54.  
  55. Delete        If there is no current selection, removes the character
  56.  or Control-D    to the left of the insertion point; if there is a
  57.         selection, removes the selected text.
  58.  
  59. Control-F    If there is no current selection, removes the character
  60.         to the right of the insertion point; if there is a
  61.         selection, removes the selected text.
  62.  
  63. Control-Y    Removes all characters from the insertion point to the
  64.         end of the line, not including any terminating return
  65.         characters.
  66.  
  67. Of course, My Word! also supports the standard cut, copy, paste, and clear operations described below.  
  68.  
  69. Here are the click and drag operations you can use to set the insertion point or select a block of text:
  70.  
  71. Click        Moves the insertion point - dragging selects by character.
  72.  
  73. Double click    Selects a word - dragging extends the selection by words.
  74.  
  75. Triple click    Selects a line - dragging extends the selection by lines.
  76.  
  77.                Apple Menu
  78.  
  79. About My Word!...
  80.  
  81. This item brings up a dialog box containing version and copyright information.
  82.  
  83.                 File Menu
  84.  
  85. New
  86.  
  87. This item opens a new document window. The name of the document is set to "Document.xx" where xx is a two-digit number that starts at 01 and increments as you create more documents.
  88.  
  89. You can have up to five document windows open at the same time. When five are open, the New item is dim and you can't select it.
  90.  
  91. The keyboard equivalent for New is Command-N.
  92.  
  93. Open...
  94.  
  95. This item brings up a standard file selection dialog which lets you choose the document you wish to display in a window on the desktop. My Word! shows only the names of documents it is capable of opening. This presently includes the following types of documents:
  96.  
  97.     My Word! document files
  98.     My Word! stationery files
  99.     Plain Text files
  100.     AppleWorks® Classic word processing files
  101.     Teach™ files
  102.  
  103. If the file you select is not a My Word! file, a dialog box appears that tells you the file's format and that My Word! is converting it to the My Word! document file format.
  104.  
  105. My Word! generally sets the name of the document window to the name of the document itself. The exception is for My Word! stationery files which are opened as untitled documents with window names of the form "Document.xx".
  106.  
  107. You can have up to five document windows open at the same time. When five are open, the Open... item is dim and you can't select it.
  108.  
  109. The keyboard equivalent for Open... is Command-O.
  110.  
  111. Close
  112.  
  113. This item closes the front window (a document window, the clipboard window, or the Find/Replace window).If you're trying to close a document window and you have edited, but not saved,the text, you are asked to confirm the closing of the window.
  114.  
  115. You can also close the front window by clicking in its close box. If you hold down the Option key while doing this, all the windows will close.
  116.  
  117. The keyboard equivalent for Close is Command-W. If you hold down the Option key while entering Command-W, all the windows will close.
  118.  
  119. Save
  120.  
  121. This item saves the text in the front document window to the file it originally came from or to the file it was last saved to. Documents saved like this are always stored in the standard My Word! document format even if they were originally stored in another format. If you want to save in another format, use the Save as... item instead.
  122.  
  123. This item behaves like the Save as... item if the window is untitled (i.e., it has a name of the form "Document.xx"). This gives you a chance to name the file.
  124.  
  125. This item is dim if the front window is not a document window.
  126.  
  127. The keyboard equivalent for Save is Command-S.
  128.  
  129. Save as...
  130.  
  131. This item lets you save the text in the front document window, or the current selection in the front document window, to a file on disk. It brings up a save dialog which lets you provide a name for the file (the default is the window name). There are also three radio buttons at the bottom of the dialog that let you specify the file format to be used: My Word!, My Word! stationery, or Text.
  132.  
  133. If a portion of text is selected in the front document window, there will be two more radio buttons at the bottom of the save dialog that let you specify whether the entire document is to be saved or the selection only. The default is "Entire".
  134.  
  135. The format of a My Word! stationery document is identical to that of a standard My Word! document. The functional difference is that My Word! opens a stationery document as an untitled document so that you don't inadvertently overwrite your stationery document when you later save the document back to disk.  
  136.  
  137. This item is dim if the front window is not a document window.
  138.  
  139. Delete...
  140.  
  141. This item lets you delete one or more files from disk. It brings up a standard "multiple select" dialog. To select files to delete, highlight their names and press the Accept button.
  142.  
  143. To select more than one name, use the Command and Shift keys while clicking names in the scrollable list. Clicking a name while holding down the Command key alternatively selects and deselects that name without affecting other names that have already been selected. Clicking a name while holding down the Shift key extends your selection to include all names from the one clicked to nearest other one selected.
  144.  
  145. A dialog appears asking you to confirm each deletion before it actually occurs.
  146.  
  147. Rename...
  148.  
  149. This item lets you rename one or more files on disk. It brings up a standard "multiple select" dialog. To select files to rename, highlight their names and press the Accept button. Multiple names can be selected in the same way as described above for the Delete... item.
  150.  
  151. For each file to be renamed, you will see a dialog box that asks you to specify the new name for the file.
  152.  
  153. Page Setup...
  154.  
  155. This item brings up the standard Page Setup dialog for your printer. When you click OK, a secondary Page Setup dialog appears that is unique to My Word!. This dialog lets you set various parameters that affect the appearance of the printed document:
  156.  
  157.     top margin (in inches)
  158.     left margin (in inches)
  159.     bottom margin (in inches)
  160.     right margin (in inches)
  161.     "Number the pages" checkbox
  162.     "Use PostScript background file" checkbox
  163.     "PostScript file..." button
  164.     
  165. If you're printing to a PostScript-capable printer like the LaserWriter, you can specify the name of a file which contains PostScript commands you want sent to the printer when each page of the document is printed. This file could contain, for example, the commands needed to draw a large outline of the word "Confidential" in the background of a page. An example of a PostScript background file appears in the appendix below.
  166.  
  167. Print...
  168.  
  169. This item brings up the standard Print dialog for your printer. When you click OK, My Word! prints the entire document.
  170.  
  171. If you select 'Text Only' quality (ImageWriter dialog) or 'Draft' quality (Epson dialog), a second dialog appears when you click OK. This is the 'Text Only' Printer Chooser dialog. This dialog lets you pick any character device connected to the system as the destination for your printed output (the printer you selected via the Control Panel is ignored). This could be a printer, a modem, or even a file on disk, for example.
  172.  
  173. The Printer Chooser dialog also lets you indicate whether a line feed is to be sent after a carriage return code, what horizontal pitch your character device will print at (10 characters/inch or 12 characters/inch), and what setup command (if any) you wish to send to the character device. (You might use the setup command to set the pitch or print quality, for example.) Note that My Word! does not automatically send the code needed to set the specified pitch; that's a device-specific command you need to include in the setup command.My Word! uses your specified pitch setting to properly position text on the page; it does not automatically send the command to set that pitch.
  174.  
  175. If you choose to print to a file on disk, a dialog appears asking you to provide a name for the file. 
  176.  
  177. Note: 'Text Only' or 'Draft' printing under My Word! routes characters directly to the character device, bypassing the usual Apple IIGS printing procedure. This is done to maximize throughput.
  178.  
  179. The keyboard equivalent for Print... is Command-P.
  180.  
  181. Print Selection...
  182.  
  183. This item behaves just like the Print... item, but only the current selection is printed. This item is dim if there is no current selection.
  184.  
  185. Transfer...
  186.  
  187. This item lets you quit My Word! and run another GS/OS or ProDOS 8 system program.It brings up a standard file selection dialog from which you can choose the name of the program you want to run. Before quitting, My Word! asks whether you want to save any documents which you have edited but not yet saved.
  188.  
  189. Quit
  190.  
  191. This item shuts down My Word! and returns you to Finder. Before shutting down, My Word! asks whether you want to save any documents which you have edited but not yet saved.
  192.  
  193. The keyboard equivalent for Quit is Command-Q.
  194.  
  195.                 Edit Menu
  196.  
  197. Undo
  198.  
  199. My Word! does not support the undo feature. This item is here to support desk accessories.
  200.  
  201. The keyboard equivalent for Undo is Command-Z.
  202.  
  203. Cut
  204.  
  205. This item removes the current selection from the document and copies it to the clipboard. If there is no current selection, this item is dim.
  206.  
  207. The keyboard equivalent for Cut is Command-X.
  208.  
  209. Copy
  210.  
  211. This item copies the current selection to the clipboard. If there is no current selection, this item is dim.
  212.  
  213. The keyboard equivalent for Copy is Command-C.
  214.  
  215. Paste
  216.  
  217. This item copies text on the clipboard to the current document at the current insertion point. (If you've selected a block of text in the document, the selection is removed first.) If there is no text on the clipboard, this item is dim.
  218.  
  219. The keyboard equivalent for Paste is Command-V.
  220.  
  221. Clear
  222.  
  223. This item removes the current selection from the document. It does not copy the selection to the clipboard. If there is no current selection, this item is dim.
  224.  
  225. Select All
  226.  
  227. This item selects all the text in the front document window. If a document window is not in front, this item is dim.
  228.  
  229. The keyboard equivalent for Select All is Command-A.
  230.  
  231. Show Clipboard / Hide Clipboard
  232.  
  233. Show Clipboard shows the contents of the clipboard (text or graphics) in a window. When the clipboard window is visible, this item name changes to Hide Clipboard and you can select it to make the clipboard window invisible. 
  234.  
  235. Ruler...
  236.  
  237. This item brings up a dialog that lets you set the visual appearance of the document in the front window. The attributes you can set are as follows:
  238.  
  239.     text justificiation: left, right, center, full
  240.     tab spacing (in pixels)
  241.     left margin (in pixels)
  242.     text width (in pixels)
  243.     paragraph indentation (in pixels)
  244.     line spacing (in pixels)
  245.  
  246. Note that these attributes affect the entire document. It is not possible to have different rulers for different portions of the document.
  247.  
  248. If a document window is not in front, this item is dim.
  249.  
  250. The keyboard equivalent for Ruler... is Command-R.
  251.  
  252.                Find Menu
  253.  
  254. Find/Replace...
  255.  
  256. This item brings up a modeless dialog that lets you specify an arbitrary string to find in the front document, and, if you want to replace it, the replacement string. You can specify whether a search is to be Case Sensitive and whether you want to Confirm Replacements. 
  257.  
  258. To do a Find and Replace operation, click the Replace button. (You will be asked to confirm replacements if you've marked the Confirm Replacements check box.) To do a simple Find operation, click the Find button.
  259.  
  260. When My Word! finds a string match, it scrolls the relevant portion of the document into view.
  261.  
  262. The keyboard equivalent for Find/Replace... is Command-F.
  263.  
  264. Find Same
  265.  
  266. This item finds the next occurrence of the last string you asked My Word! to look for.
  267.  
  268. When My Word! finds a string match, it scrolls the relevant portion of the document into view.
  269.  
  270. The keyboard equivalent for Find Same is Command-G.
  271.  
  272. Find Selection
  273.  
  274. This item finds the word or phrase you have selected in the document. (The word or phrase currently selected actually appears in the menu item instead of the word "Selection".)
  275.  
  276. When My Word! finds a string match, it scrolls the relevant portion of the document into view.
  277.  
  278. The keyboard equivalent for Find Selection is Command-H.
  279.  
  280. Display Selection
  281.  
  282. This item scrolls the document so that your current selection point appears in the visible portion of the window.
  283.  
  284.                 Font Menu
  285.  
  286. Choose Font...
  287.  
  288. This item brings up the standard font chooser dialog which lets you specify any arbitrary font, size, and style to be applied to the current selection. If there is no current selection, just an insertion point, characters typed at that insertion point will be of the font, size, and style selected.
  289.  
  290. The keyboard equivalent for Choose Font... is Command-Y.
  291.  
  292. Font Names
  293.  
  294. Following the Choose Font... item are the names of all the fonts available to the system. The unique font associated with the current selection, or insertion point, has a check mark next to it. To change the font for the selection or insertion point, select the name of the font you want.
  295.  
  296.                Size Menu
  297.  
  298. This menu contains items which are the real (non-scaled) point sizes for the current font. The unique size associated with the current selection, or insertion point, has a check mark next to it. To change the size for the selection or insertion point, select the appropriate item. If you want to use a size not listed, use the Choose Font item in the Font Menu instead.
  299.  
  300.               Style Menu
  301.  
  302. The items in this menu let you set the style of the current selection: plain, bold, italic, underline, outline, or shadow. Except for plain, style attributes are cumulative; that is, you can apply more than one of them at once to the current selection in the document. If there is no current selection, just an insertion point, this style will be applied to characters you type while at that insertion point.
  303.  
  304. Attributes that apply to the current selection have a check mark next to them.
  305.  
  306. Plain
  307.  
  308. This sets the plain text style, which looks like this.
  309.  
  310. The keyboard equivalent for Plain is Command-T.
  311.  
  312. Bold
  313.  
  314. This sets the bold style, which looks like this. If all the text in the current selection is already bolded, the text becomes unbolded instead.
  315.  
  316. The keyboard equivalent for Bold is Command-B.
  317.  
  318. Italic
  319.  
  320. This sets the italic style, which looks like this.If all the text in the current selection is already italicized, the text becomes unitalicized instead.
  321.  
  322. The keyboard equivalent for Italic is Command-I.
  323.  
  324. Underline
  325.  
  326. This sets the undeline style, which looks like this. If all the text in the current selection is already underlined, the text becomes ununderlined instead.Note that some fonts, such as Shaston 8, cannot be underlined.
  327.  
  328. The keyboard equivalent for Underline is Command-U.
  329.  
  330. Outline
  331.  
  332. This sets the outline style, which looks like this.If all the text in the current selection is already outlined, the text becomes unoutlined instead.
  333.  
  334. Shadow
  335.  
  336. This sets the shadow style, which looks like this.If all the text in the current selection is already shadowed, the text becomes unshadowed instead.
  337.  
  338.                Window Menu
  339.  
  340. This menu contains a list of the names of all the document windows. (The one at the front has a check mark next to it.) Bring a document window to the front by selecting its name from this menu.
  341.  
  342.              Foreground Menu
  343.  
  344. This menu lets you specify the foreground color of the selected text. If there is no current selection, just an insertion point, this color will be applied to characters you subsequently type.
  345.  
  346.              Background Menu
  347.  
  348. This menu lets you specify the background color of the selected text. If there is no current selection, just an insertion point, this color will be applied to the background of characters you subsequently type.
  349.  
  350.                 APPENDIX
  351.  
  352.             Installing the My Word! Files
  353.  
  354. The My Word! system is made up of three files:
  355.     
  356. + My.Word is the My Word! application itself. It is a GS/OS system file which can be launched from Finder. Put this file in a folder called My.Word on your startup volume so that Finder will automatically launch it when you double-click a My Word! document icon.
  357.  
  358. + FType.My.Word contains the names Finder uses to identify the three types of data files unique to My Word!:
  359.  
  360.     "My Word! document" for file type $0050, auxiliary type $00005445 
  361.     "My Word! stationery" for file type $0050, auxiliary type $00005446
  362.     "My Word! preferences" for file type $005A, auxiliary type $0000800C 
  363.  
  364. Put the FType.My.Word file in the ICONS/ folder of your startup volume.
  365.  
  366. + My.Word.Icons contains the icons Finder uses to display the three types of data files unique to My Word! as well as the My Word! application itself. This file also contains the information Finder needs to automatically run My Word! when you select a My Word! document file (or files) from Finder and choose the Open or Print command. The My Word! application pathname specified for document files and stationery files is */My.Word/My.Word. You can change this pathname, if necessary, using an icon-editing utility such as Dave "Nifty" Lyons' DIcEd or Paul Elseth's IconEd. Put the My.Word.Icons file in the ICONS/ folder of your startup volume.
  367.  
  368.               File Formats
  369.  
  370. My Word! Documents
  371.  
  372. My Word! documents contain the styled text you create with the My Word! application. These documents have a GS/OS file type of $0050 and auxiliary type of $00005445, the same as the Teach documents described in Apple II File Type Notes for File Type $50 and Auxiliary Type $5445. 
  373.  
  374. The data fork of a My Word! document contains the ASCII text for the document with a carriage return following every paragraph. The structure of the data fork is identical to that of a Teach document.
  375.  
  376. The resource fork of a My Word! document contains the two standard Teach resources ($8012 and $7001) and three resources unique to My Word!. Here is a complete list:
  377.  
  378.     type $8012 (rStyleBlock), ID $00000001
  379.     type $7001, ID $00000001
  380.     type $6FFE, ID $00000001
  381.     type $6FFF, ID $00000001
  382.     type $8023 (rC1OutputString), ID $00000001
  383.  
  384. The rStyleBlock resource contains the style and ruler information for the text contained in the data fork. This resource is always present.
  385.  
  386. The $7001 resource contains information about the size and position of the document window the last time the document was saved to disk. This resource is always present.
  387.  
  388. The $6FFE resource contains the Page Layout information you specify in the secondary Page Setup... dialog described above. This resource is always present.
  389.  
  390. The $6FFF resource contains the print record used when the document was last printed.
  391.  
  392. The rC1OutputString resource contains the name of the PostScript background file, if applicable.
  393.  
  394. My Word! Stationery Documents
  395.  
  396. My Word! stationery documents are identical in structure to standard My Word! document files. The only difference is the auxiliary type for the file: it is $00005446, not the $00005445 used to identify standard document files.
  397.  
  398. My Word! Preferences
  399.  
  400. The My Word! preferences file, called My.Word.Prefs, has a file type of $005A and auxiliary type of $0000800C. It is stored in the same folder as the My Word! application or, if you launched My Word! from an AppleShare file server configured for use by Apple II clients, in your user directory.
  401.  
  402. The preferences file contains information you specify in the 'Text Only' Printer Chooser dialog when you indicate you want to print in 'Text Only' or 'Draft' mode. 
  403.  
  404.              PostScript Files
  405.  
  406. The secondary Page Setup dialog lets you specify the name of a file containing PostScript commands to be processed when each page of the document is printed on a LaserWriter. Here is an example of what such a file might contain:
  407.  
  408.     /pointSize 136 def
  409.     /myText (Confidential) def
  410.     /center {stringwidth pop 2 div neg 0 moveto} def
  411.     /drawOutline {false charpath stroke} def
  412.     initmatrix 
  413.     /Times-Roman findfont pointSize scalefont setfont
  414.     306 396 translate 45 rotate
  415.     myText center
  416.     myText drawOutline
  417.  
  418. These commands tell the LaserWriter to draw the word "Confidential" in 136-point type and outline style at a 45 degree angle. 
  419.  
  420. For more information on the PostScript page description language, refer to PostScript Language Reference Manual and PostScript Language Tutorial and Cookbook, both by Adobe Systems Incorporated. These books are published by Addison-Wesley Publishing Company. 
  421.  
  422.                  Tips
  423.  
  424. 1. When My Word! first starts up, it usually creates an empty document window called Document.01. If you hold down the Command key while My Word! starts up, a standard Open dialog comes up instead, allowing you to choose a document that already exists.
  425.  
  426. 2. Here is a list of all the keyboard equivalents you can use with My Word!:
  427.  
  428.     Key            Description
  429.     Command-A        Select All
  430.     Command-B        Bold
  431.     Command-C        Cut
  432.     Command-F        Find/Replace...
  433.     Command-G        Find Next
  434.     Command-H        Find Selection
  435.     Command-I        Italic
  436.     Command-N        New
  437.     Command-O        Open...
  438.     Command-P        Print...
  439.     Command-Q        Quit
  440.     Command-R        Ruler...
  441.     Command-S        Save
  442.     Command-T        Plain
  443.     Command-V        Paste
  444.     Command-W        Close
  445.     Command-X        Cut
  446.     Command-Y        Choose Font...
  447.     Command-Z        Undo
  448.  
  449. 3. Finder automatically launches My Word! and opens the My Word! document or My Word! stationery document you double-click from Finder. If you want to run My Word! when you double-click a text file or an AppleWorks Classic word processing file, use an icon-editing utility like Dave "Nifty" Lyons' DIcEd or Paul Elseth's IconEd to edit the pathname attribute for the icons associated with file type $0004 (text) and file type $001A (AppleWorks Classic word processing). For convenience, icons for these file types are included in the My.Word.Icons file, so you can edit their attributes there instead of hunting for them in the other icon files you have in the ICONS/ folder. (Text and AppleWorks icons in another icon file will override those in My.Word.Icons if Finder encounters the other file after processing My.Word.Icons. In this situation, you will have to edit the attributes of the icons in the other file instead.)